'''

@author: Chris
'''
import unittest
import SentenceGrammar
import en

class Test(unittest.TestCase):


    def setUp(self):
        self.gram = SentenceGrammar.SentenceGrammar()
        
        sentenceA = "The dog is black"
        sentenceB = "I don't like to lie"
        self.trueSentences = [sentenceA, sentenceB]
        
        FsentenceA = ""
        self.falseSentences = [FsentenceA]

    def tearDown(self):
        pass


    def testCheckChunksTrue(self):
        
        for sentence in self.trueSentences:
            self.assertTrue(self.gram.checkChunks(en.sentence.chunk(sentence)))
            
    def testCheckChunksFalse(self):
        for sentence in self.falseSentences:
            self.assertFalse(self.gram.checkChunks(en.sentence.chunk(sentence)))


if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testName']
    unittest.main()